export const formatTime = (timestamp: number): string => {
  const date = new Date(timestamp)
  return date.toLocaleString('zh-CN', {
    year: 'numeric',
    month: '2-digit',
    day: '2-digit',
    hour: '2-digit',
    minute: '2-digit',
    second: '2-digit'
  })
}

export const getTypeColor = (type: string): string => {
  switch (type) {
    case 'text':
      return ''
    case 'image':
      return 'success'
    case 'file':
      return 'warning'
    default:
      return 'info'
  }
} 